﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace NOSDC.Pocos
{
    [Serializable]
    public class Events
    {
        public int EventID { get; set; }
        
        [Required]
        public string Title { get; set; }

        [Required]
        public string Description { get; set; }

        [Required]
        public DateTime StartDate { get; set; }

        [Required]
        public DateTime EndDate { get; set; }

        [Required]
        public string Location { get; set; }

        [Required]
        [RegularExpression(@"^\$?\d+(\.(\d{2}))?$")]
        public decimal Price { get; set; }
        public string Logo { get; set; }
        public bool Finalized { get; set; }
        public int StatusID { get; set; }
        public virtual Status Status { get; set; }

        public virtual IList<EventAttendee> EventAttendees { get; set; }
        public virtual IList<FinalEventAttendee> FinalEventAttendees { get; set; }

        public virtual List<Speaker> Speakers { get; set; }
        public virtual List<Sponsor> Sponsors { get; set; }
        public int SponsorId { get; set; }

        public Events()
        {
            Sponsors = new List<Sponsor>();
            Speakers = new List<Speaker>();
        }
    }
}
